//
// Created by jsjxsy on 2022/8/29.
//
#include <iostream>
#include <string>
using namespace std;
template<typename T>
class ManyFriend {
 private:
  T item;
 public:
  ManyFriend(const T &i) : item(i) {}
  template<typename C, typename D>
  friend void show(C &c, D &d);
};
template<typename C, typename D>
void show(C &c, D &d) {
  cout << c.item << "," << d.item << endl;
}

int main() {
  ManyFriend<int> m1(10);
  ManyFriend<int> m2(20);
  show(m1, m2);
  return 0;
}

